package com.spring.looselyCoupled;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
	
	public static void main(String[] args) {
    
	//	IOutputGenerator output = new CsvOutputGenerator();
    //	output.generateOutput();
    	
    //	OutputHelper output2 = new OutputHelper();
    //	output2.generateOutput();
    	
    	ApplicationContext context = 
     	   new ClassPathXmlApplicationContext("Spring-Module.xml");
  
     	OutputHelper output3 = (OutputHelper)context.getBean("OutputHelper");
     	output3.generateOutput();
    	
		
	}
}
